home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / bit.doc < prev    next >
Internet Message Format  |  1995-03-31  |  2KB

  1. Date: January 10, 1992 
  2.  
  3. BIT -  Directory 
  4. Hex String Bit Operators 
  5. Copyright 1992  Brian Maguire 
  6. All Rights Reserved 
  7.  
  8. DISCLAIMERS 
  9.  
  10. BIT and this manual are presented without warranties, expressed 
  11. or implied.  The author makes no guarantee as to the fitness of 
  12. this software. 
  13.  
  14. BIT can be copied freely provided the software, including this 
  15. manual, is copied in its entirety.  The user cannot be charged, 
  16. in whole or in part, except for the cost of reproduction.  No 
  17. part of this package may be used for commercial purposes without 
  18. written permission from the author. 
  19.  
  20.  
  21. SUMMARY 
  22.  
  23. The directory BIT contains three programs and one subroutine. 
  24. The programs SBIT, CBIT and ?BIT all operate on one bit in a hex 
  25. string (binary integer).  Because these programs were originally 
  26. created to manipulate a hex string that contained flags used in 
  27. an application they function differently than the built-in binary 
  28. integer commands.  Unlike the usual commands found in the BASE 
  29. menu on the 48, which only operate on hex strings that are 16 
  30. nibbles long, these programs will operate on a hex string of any 
  31. length. 
  32.  
  33.  
  34. SBIT     hex string, real  ->   hex string 
  35.                sets one bit in a hex string 
  36.  
  37. CBIT   hex string, real  ->  hex string 
  38.              clears one bit in a hex string 
  39.  
  40. ?BIT   hex string  real  ->  real (0 or 1) 
  41.              tests one bit in a hex string 
  42.  
  43.  
  44. Enjoy, 
  45. Brian Maguire 
  46. 139 Kingsbury 
  47. Dearborn, MI 48128 
  48.